<!DOCTYPE html>
<html>
    <?php
    include'login.php';
    if (isset($_POST['submit'])) {
        SignUp($_POST['user'], $_POST['password'], $_POST['first_name'], $_POST['last_name']);
    }
    ?>
    <head>
        <link rel="stylesheet" type="text/css" href="blogStyles.css"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <header> CollabBlog </header>
    <body>
        <h1> Registration</h1>


        <form method ="post"  >
           
            <table>
                <tr>
                    <td>
                        First Name
                    </td>
                    <td>:</td>
                    <td>
                        <input type ="text" name ="first_name" maxlength ="30" />
                    </td>
                </tr>
                <tr>
                    <td>
                        Last Name
                    </td>
                    <td>:</td>
                    <td>
                        <input type ="text" name ="last_name" maxlength ="30" />
                    </td>


                </tr>
                <td>
                    User Name
                </td>
                <td>:</td>
                <td>
                    <input type ="text" name ="user"  maxlength ="50"/>
                </td>
                <tr>
                    <td>
                      Password
                    </td>
                    <td>:</td>
                    <td>
                        <input type ="text" name ="password" maxlength ="30" />
                    </td>
                </tr>
                <tr>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                </tr>
                <tr>
                    <td>

                    </td>
                    <td>
                        <input type ="submit" name ="submit" value ="register" />
                    </td>

                </tr>


            </table>
                

        </form>

    </body>
</html>
